package com.example.demo.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.demo.order.entity.OCardManage;
import com.example.demo.order.mapper.OCardManageMapper;
import com.example.demo.order.service.OCardManageService;
import com.example.demo.util.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 卡券管理表; 服务实现类
 * </p>
 *
 * @author 涛
 * @since 2024-08-01
 */
@Service("oCardManageService")
public class OCardManageServiceImpl extends ServiceImpl<OCardManageMapper, OCardManage> implements OCardManageService {

    @Autowired
    OCardManageMapper oCardManageMapper;

    @Override
    public Result<?> getCardCount(Integer userId) {
        return Result.ok(oCardManageMapper.getCardCount(userId));
    }
}
